{include file="public/uheader"}
<div class="main order">
    {include file="user/common"}
    <div class="ortab">
        <div class="tabbar">
            <a class="active" href="javascript:;">
                <p>充值记录</p>
                {if condition="isset($record[0])"}
                <span>￥{$record[0]['amount']}</span>
                {else /}
                <span>￥0</span>
                {/if}
                <div class="line"></div>
            </a>
            <a href="javascript:;">
                <p>提现记录</p>
                {if condition="isset($record[1])"}
                <span>￥{$record[1]['amount']}</span>
                {else /}
                <span>￥0</span>
                {/if}
                <div class="line"></div>
            </a>
            <a href="javascript:;">
                <p>红包收入</p>
                <span>￥{$oneForAll['amount']}</span>
                <div class="line"></div>
            </a>
            {notempty name="apply"}
            <a href="javascript:;" class="f-right">
                <p>红包支出</p>
                <span>￥{$allForOne['amount']}</span>
                <div class="line"></div>
            </a>
            {/notempty}
        </div>
        <div class="tabcontent purplebox recon">
            <div class="active toulist relist">
                <div class="tabitem">
                    <h1>我的充值记录</h1>
                    {if condition="isset($record[0])"}
                    <ul class="chonlist">
                        {foreach name="$record[0]['list']" item="val"}
                        <li>
                            {$val['create_time']}
                            <span class="f-right c-red">+￥{$val['change']}</span>
                        </li>
                        {/foreach}
                    </ul>
                    {/if}
                </div>
            </div>
            <div class="toulist relist">
                <div class="tabitem">
                    <h1>我的提现记录</h1>
                    {if condition="isset($record[1])"}
                    <ul class="chonlist">
                        {foreach name="$record[1]['list']" item="val"}
                        <li>
                            {$val['create_time']}
                            <span class="f-right c-red">+￥{:abs($val['change'])}</span>
                        </li>
                        {/foreach}
                    </ul>
                    {/if}
                </div>
            </div>
            <div class="toulist relist">
                {foreach name="oneForAll['list']" item="val"}
                    {if condition="strtotime($val['vote_time']) != 0"}
                    <div class="tabitem toup">
                        <p class="tit">我为<span class="c-red">{$val['baby_name']}</span>宝宝投票</p>
                        {$val['vote_time']}<span class="f-right c-green">￥{$val['vote_amount']}</span>
                    </div>
                    {/if}
                    {if condition="strtotime($val['share_time']) != 0"}
                    <div class="tabitem toup">
                        <p class="tit">我为<span class="c-red">{$val['baby_name']}</span>宝宝拉票</p>
                        {$val['share_time']}<span class="f-right c-green">￥{$val['share_amount']}</span>
                    </div>
                    {/if}
                {/foreach}
            </div>
            {notempty name="apply"}
            <div class="toulist relist">
                {foreach name="allForOne['list']" item="val"}
                {if condition="strtotime($val['vote_time']) != 0"}
                <div class="tabitem toup">
                    <p class="tit">{$val['nickname']} 给我投票了</p>
                    {$val['vote_time']}<span class="f-right c-red">￥{$val['vote_amount']}</span>
                </div>
                {/if}
                {if condition="strtotime($val['share_time']) != 0"}
                <div class="tabitem toup">
                    <p class="tit">{$val['nickname']} 给我拉票了</p>
                    {$val['share_time']}<span class="f-right c-red">￥{$val['share_amount']}</span>
                </div>
                {/if}
                {/foreach}
            </div>
            {/notempty}
        </div>
    </div>
    <div class="fot">
        <p>Copiright @2012-2018</p><p>美育儿meiyuer.com 版权所有</p>
    </div>
    <!-- <div class='popmodal' id="paypop">
        <div class="bluebox">
            <div class="pay">
                <button class="chongbtn">充值红包</button>
                <p>充值后，好友帮你拉票/分享，且产生投票后，您即对该分享人和投票人进行红包奖励；您本人不参与自己发起的红包奖励！</p>
                <form>
                    <div class="inputgroup">
                        <label>拥金分成</label>
                        <input type="text" placeholder="分享人">
                        <span>:</span>
                        <input type="text" placeholder="投票人">
                        <p class="gray">设置分享人佣金分成比例，输入0-10数字</p>
                    </div>
                    <div class="inputgroup">
                        <label>佣金发放</label>
                        <input type="number" placeholder="最大金额">
                        <span>-</span>
                        <input type="number" placeholder="最小金额">
                        <p class="gray">随机去最小金额和最大金额中间数，保留两位小数，每人</p>
                        <p class="c-red">实际收到的佣金=随机佣金*分成</p>
                        <p class="c-green">活动结束后的第三天可申请退款。</p>       
                    </div>
                    <div class="inputgroup">
                        <label class="weui-label">红包充值</label>
                        <input class="weui-input" type="number"> 元
                    </div>
                    <div class="t-cent">
                        <div><button type="reset" class="rebtn">取消</button>
                        <button type="submit" class="subtn">确认充值</button></div>   
                    </div>     
                </form>
            </div>  
        </div>       
    </div> -->
    <!-- <div class='popmodal' id="editpop">
        <div class="bluebox">
            <div class="pay">
                <button class="chongbtn">红包规则设置</button>
                <p>充值后，好友帮你拉票/分享，且产生投票后，您即对该分享人和投票人进行红包奖励；您本人不参与自己发起的红包奖励！</p>
                <form>
                    <div class="inputgroup">
                        <label>拥金分成</label>
                        <input type="text" placeholder="分享人">
                        <span>:</span>
                        <input type="text" placeholder="投票人">
                        <p class="gray">设置分享人佣金分成比例，输入0-10数字</p>
                    </div>
                    <div class="inputgroup">
                        <label>佣金发放</label>
                        <input type="number" placeholder="最大金额">
                        <span>-</span>
                        <input type="number" placeholder="最小金额">
                        <p class="gray">随机去最小金额和最大金额中间数，保留两位小数，每人</p>
                        <p class="c-red">实际收到的佣金=随机佣金*分成</p>
                        <p class="c-green">活动结束后的第三天可申请退款。</p>       
                    </div>
                    <div class="inputgroup">
                        <label class="weui-label">红包充值</label>
                        <span class="c-red">128.00</span> 元
                    </div>
                    <div class="t-cent">
                        <div><button type="reset" class="rebtn">取消</button>
                        <button type="submit" class="subtn">确认修改</button></div>   
                    </div>     
                </form>
            </div>  
        </div>       
    </div> -->
</div>


<script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="/static/index/js/layer/layer.js"></script>
<script type="text/javascript" src="/static/index/js/jquery-weui.min.js"></script>
<script type="text/javascript" src="/static/index/js/layer.js"></script>
<script type="text/javascript" src="/static/index/js/fastclick.js"></script>
<script type="text/javascript" src="/static/index/js/common.js"></script>
{include file="public/footer"}
